<?php
	include dirname(__FILE__).'/header.php';
?>

<body class="thrColFixHdr">

<div id="container">
  <div id="header">
	<?php include dirname(__FILE__).'/top_nav.php'?>
  </div>
  <div class="flabs">
   <div class="flaws"></div>
  </div>
  <div id="mainContent">
   <div class="contenta">
    <div class="leftmenu">
     <div class="tlleft pdtpho"></div>
     <div class="hconleft">
      <ul>
          <li><a href="#" <?if (empty($_GET['bid'])) {?>  class="aa" <?php }?>>品牌列表</a></li>
		  <?php foreach($brandList as $key=>$val){?>
          	 <li><a href="?bid=<?php echo $val['moeb_id']?>" <?php if($_GET['bid'] == $val['moeb_id']) {?> class="aa"<?php }?>><?php echo $val['moeb_name']?></a></li>
          <?php }?>         
      </ul>
      <div class="air"></div>
     </div>
     <div class="air"></div>
     <div class="tlleft leftptd"></div>
		<?php include dirname(__FILE__).'/left_hot_sale_list.php'?>
     <div class="air"></div>
	 
     <div class="hconleft"><img src="<?php echo IMAGE_URL?>images/pop_431.jpg" /></div>
	 
     <div class="air"></div>
     <div class="imgcs"><img src="<?php echo IMAGE_URL?>images/leftsbt.jpg" /></div>
		<?php include dirname(__FILE__).'/left_contact_us.php'?>
     
    </div>
    
    <div class="contrih">
     <div class="tlcon">首页 >商品分类>产品展示</div>
     <div class="hconrih">      
      <div class="contrt">
        <p><img src="<?php echo IMAGE_URL?>images/pdshowimg.jpg" width="705" height="180" /></p>
         <div id="select">
          <div class="mt"><h1>手机</h1>
          <div class="extra"><a href="mobile.php">重置筛选条件</a></div>
          </div>
          
          <dl><dt>品牌：</dt><dd><div><a class="curr" href="?bid=0">全部</a>
          </div>
          <?php foreach($brandList as $key=>$val){?>
          	<div>
            	<a href="?bid=<?php echo $val['moeb_id']?>" <?php if($_GET['bid'] == $val['moeb_id']) {?> class="curr"<?php }?>>
					<?php echo $val['moeb_name']?>
                </a>
            </div>
          <?php }?>
          </dd></dl>
          <dl>
          	<dt>价格：</dt>
          	<dd>
            	<div>
                	<a class="curr" href="?price=0">全部</a>
                </div>            
				<?php 
                    $priceList = array(
                                       '1000-1999' => '1000-1999',
                                       '2000-2999' => '2000-2999',
                                       '3000-4999' => '3000-4999',	
                                       '5000' => '5000以上',                                       
                                       );
                ?>         
                <?php foreach($priceList as $key=>$val){?>   
            	<div>
                	<a <?php if ($_GET['price'] == $key){?> class="curr" <?php }?> href="?price=<?php echo $key;?>"><?php echo  $val;?></a>
                </div>
                <?php }?>
             </dd>
          </dl>
         </div>    
        <p>&nbsp;</p>
        <div id="plist" class="m">
				<ul class="list-h">

				<?php
					if($countPhone > 0){
						foreach($phoneList as $key=>$val){?>
                        <li>
                            <div class="p-img" style="height:120px">
                                <a href="mobileinfo.php?id=<?php echo $val['moep_id']?>" >
                                    <img height="120" width="120" alt="<?php echo $val['moep_name']?>" src="<?php echo $val['moep_log']?>">
                                </a>
                            </div>
                            <div class="p-name">
                                <a href="mobileinfo.php?id=<?php echo $val['moep_id']?>" >
                                    <?php echo $val['moep_name']?>
									<!--
									<font name="378342" class="adwords" style="color:#ff0000"><?php echo $val['moep_price']?></font>
									-->
                                </a>
								<div class="p-price">
									<?php if(!$val['moep_price']){?>
									  暂无定价
									<?php }else{?>
									<font name="378342" class="adwords" style="color:#ff0000">
									￥<?php echo $val['moep_price']?>
									</font>
									<?php }?>
								 </div>
 
                            </div>
                        </li>                    
                <?php 
						}
					}else{
				?>
                	<li>对不起,没有满足要求的手机！</li>
                <?php		
					}
				?>                  


<script type="text/javascript">var jdwsment = {"skuids" : "292497,198955,202928,391254,307526,337624,373001,317363,318200,338267,272325,299410,307232,174620,327256,317360,342314,351107,332308,353051,289530,272229,307674,227097,172718,227098,346845,345412,374515,297375,378342,210247","key":"067AC48F66EF9C5CAB756A2495E4F00514BE535B"};</script>
				</ul>
			</div>
            <?php if($countPhone > $perpage){?>
            <!--
            <div class="m clearfix air">
				<div class="pagin fr">
                    <span class="prev-disabled">上一页<b></b></span>
                    
                    <a class="current" href="#">1</a>
                    <a href="#">2</a><a href="#">3</a><span class="text">…</span><a href="#">26</a>
                    <a class="next" href="#">下一页<b></b></a>
				</div>
			</div>
            -->
            <?php 
				echo $pagestr;
			}
			?>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
      </div>
     </div>
    </div>
    <div class="air"></div>
   </div>


<?php
	include dirname(__FILE__).'/footer.php';
?>  